import { gql } from "@apollo/client";
export const GET_STUDENTS = gql`
  query getStudents($page: PageInput!) {
    getStudents(page: $page) {
      code
      message
      data {
        name
        id
        createAt
      }
      page {
        pageNum
        pageSize
        total
      }
    }
  }
`;
export const GET_SAMPLE_STUDENTS = gql`
  query getStudents($page: PageInput!) {
    getStudents(page: $page) {
      code
      message
      data {
        name
        id
      }
      page {
        pageNum
        pageSize
        total
      }
    }
  }
`;
// TODO
export const GET_STUDENT_INFO = gql`
  query getOrganizationInfo($id: String!) {
    getOrganizationInfo(id: $id) {
      code
      message
      data {
        id
        orgRoomImg {
          url
        }
        orgFrontImg {
          url
        }
        orgOtherImg {
          url
        }
        name
        logo
        tags
        description
        address
        longitude
        latitude
        tel
        identityCardFrontImg
        identityCardBackImg
        businessLicense
      }
    }
  }
`;
// TODO
export const COMMIT_STUDENT = gql`
  mutation commitOrganization($params: OrganizationInput!, $id: String) {
    commitOrganization(params: $params, id: $id) {
      code
      message
    }
  }
`;
